<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
    </head>
    <body>
        <script>
            console.log(aa("adfasfaltdfasf"));
            function aa(name){
                return name.match(/alt.*f/g);
            }
        </script>
    </body>
</html>